package com.itheima.reggie.service;

import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Category;

import java.util.List;

public interface CategoryService {
  List<Category> findAll();

//保存
  void save(Category category);

  //修改
  void update(Category category);

  //删除
  ResultInfo deleteById(Long id);

    List<Category> findByType(Integer type);
}